package com.yy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/*缴费凭据*/
@Data
@TableName("orders")
public class Order {
    @TableId(type= IdType.AUTO)
    private Long id;
    @TableField("in_datetime")
    private Date inDateTime;//入场时间
    @TableField("out_datetime")
    private Date outDateTime;//离场时间
    private BigDecimal price;//缴费金额
    @TableField("is_pay_complete")
    private boolean isPayComplete;//缴费完成状态
    @TableField("is_require_invoicing")
    private  boolean isRequireInvoicing;//是否开具发票

    private PricingStandard pricingStandard;//关联收费标准
    private ParkingLot parkingLot;//关联停车场
    private Vehicle vehicle;//关联车辆
    public Order(){
        this.inDateTime=this.outDateTime=new Date();
        this.isPayComplete=this.isRequireInvoicing=false;
        this.price=BigDecimal.ZERO;

    }
}


